﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NRCP.BusinessEntities;

namespace NRCP.BusinessLogicLayer
{
    public partial class NationalPlanFishBLL
    {
        public List<NationalPlanFish> GetNationalPlanFishes(Func<NationalPlanFish, bool> query)
        {
            try
            {
                //CustomerContent
                List<NationalPlanFish> result = _socialShareDatabaseContext.NationalPlanFish.Where(query).ToList();
                return result;
            }
            //handling other exceptions...
            catch (Exception ex)
            {
                //Error handling
                throw ex;
            }
        }

        public NationalPlanFish GetNationalPlanFish(Func<NationalPlanFish, bool> query)
        {
            try
            {
                //CustomerContent
                NationalPlanFish result = _socialShareDatabaseContext.NationalPlanFish.FirstOrDefault(query);
                return result;
            }
            //handling other exceptions...
            catch (Exception ex)
            {
                //Error handling
                throw ex;
            }
        }
    }
}